<?php
include './conn/conn.php';
include './islogin.php';
$user = $_SESSION['jsjgcxusername'];
?>
<!DOCTYPE html>
<html class="x-admin-sm">
	<head>
		<meta charset="UTF-8">
		<title>我的桌面</title>
		<meta name="renderer" content="webkit">

		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=1.0" />
		<!--<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />-->
		<link rel="shortcut icon" href="images/jsj_ico.png">
		<link rel="stylesheet" href="./css/font.css">
		<link rel="stylesheet" href="./css/xadmin.css">
	</head>
	<body>
		<div class="x-body">
			<blockquote class="layui-elem-quote">
				欢迎管理员： <span class="x-red"> <?php
				echo $user;
				echo "</span>！当前时间:" . gmdate("Y-m-d H:i:s", time() + 8 * 3600);
				?>
				 <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
         <i class="iconfont" style="line-height:30px">&#xe6aa;</i></a>
			</blockquote>
			<fieldset class="layui-elem-field">
				<legend>
					数据统计
				</legend>
				<div class="layui-field-box">
					<div class="layui-col-md12">
						<div class="layui-card">
							<div class="layui-card-body">
								<div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
									<div carousel-item="">
										<ul class="layui-row layui-col-space10 layui-this">
											<li class="layui-col-xs2">
												<a href="./News/NewsMy_List.html" class="x-admin-backlog-body">

													<p>
														<cite> <?php

														$self_sql = "select no from tb_news where author='$user'";
														$self_result = mysqli_query($link, $self_sql);
													echo	mysqli_num_rows($self_result);
														//																var_dump($gg_sql);
														//																	echo "<li> 公告：" . $gg_info. "</li>";
														?> </cite>
													</p>
													<h3>我的文章</h3>
												</a>
											</li>
											<li class="layui-col-xs2">
												<a href="javascript:;" class="x-admin-backlog-body">

													<p>
														<cite> <?php

														$all_sql = "select no from tb_news";
															echo mysqli_num_rows(mysqli_query($link, $all_sql));
														//																$all_info = mysqli_num_rows($all_result);
														//																var_dump($gg_sql);
														//																	echo "<li> 公告：" . $gg_info. "</li>";
														?> </cite>
													</p>
													<h3>总文章数</h3>
												</a>
											</li>
											<li class="layui-col-xs2">
												<a href="javascript:;" class="x-admin-backlog-body">
													<p>
														<cite>	<?php

														$log_sql = "select id from tb_loginlog";
												echo	mysqli_num_rows(mysqli_query($link, $log_sql));
														//																$all_info = mysqli_num_rows($all_result);
													?>
														</cite>
													</p>
													<h3>登录次数</h3>
												</a>
											</li>
											<li class="layui-col-xs2">
												    <a href="./News/NewsRecyle_List.html" class="x-admin-backlog-body">
													<p>
														<cite>	<?php

														$log_sql = "select no from tb_news where state = 3 and author='$user'";
												echo	mysqli_num_rows(mysqli_query($link, $log_sql));
														//																$all_info = mysqli_num_rows($all_result);
													?>
														</cite>
													</p>
													<h3>回收站</h3>
												</a>
											</li>
											<li class="layui-col-xs2">
												<a href="./News/NewsMyDraft_List.html" class="x-admin-backlog-body">
													<p>
														<cite>	<?php

														$log_sql = "select no from tb_news where state = 2 and author='$user'";
												echo	mysqli_num_rows(mysqli_query($link, $log_sql));
														//																$all_info = mysqli_num_rows($all_result);
													?>
														</cite>
													</p>
													<h3>草稿箱</h3>
												</a>
											</li>
										</ul>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</fieldset>
			<fieldset class="layui-elem-field">
				<legend>
					系统通知
				</legend>
				<div class="layui-field-box">
					<table class="layui-table" lay-skin="line">
						<tbody>
							<tr>
								<td >
									<a class="x-a" href="/" target="_blank">
										新版x-admin 2.0上线了
									</a></td>
							</tr>
							<tr>
								<td >
									<a class="x-a" href="/" target="_blank">
										交流qq群:(519492808)
									</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</fieldset>
			<fieldset class="layui-elem-field">
				<legend>
					系统信息
				</legend>
				<div class="layui-field-box">
					<table class="layui-table">
						<tbody>
							<tr>
								<th>xxx版本</th>
								<td>1.0.180420</td>
							</tr>
							<tr>
								<th>服务器地址</th>
								<td>x.xuebingsi.com</td>
							</tr>
							<tr>
								<th>操作系统</th>
								<td>WINNT</td>
							</tr>
							<tr>
								<th>运行环境</th>
								<td>Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9</td>
							</tr>
							<tr>
								<th>PHP版本</th>
								<td>5.6.27</td>
							</tr>
							<tr>
								<th>PHP运行方式</th>
								<td>cgi-fcgi</td>
							</tr>
							<tr>
								<th>MYSQL版本</th>
								<td>5.5.53</td>
							</tr>
							<tr>
								<th>ThinkPHP</th>
								<td>5.0.18</td>
							</tr>
							<tr>
								<th>上传附件限制</th>
								<td>2M</td>
							</tr>
							<tr>
								<th>执行时间限制</th>
								<td>30s</td>
							</tr>
							<tr>
								<th>剩余空间</th>
								<td>86015.2M</td>
							</tr>
						</tbody>
					</table>
				</div>
			</fieldset>
			<fieldset class="layui-elem-field">
				<legend>
					开发团队
				</legend>
				<div class="layui-field-box">
					<table class="layui-table">
						<tbody>
							<tr>
								<th>版权所有</th>
								<td>xuebingsi(xuebingsi)
									<a href="http://x.xuebingsi.com/" class='x-a' target="_blank">
										访问官网
									</a></td>
							</tr>
							<tr>
								<th>开发者</th>
								<td>马志斌(113664000@qq.com)</td>
							</tr>
						</tbody>
					</table>
				</div>
			</fieldset>
		</div>

	</body>
</html>